/**
 * 
 */
package fr.utbm.gi.vi51.slizers.framework.environment;

import java.util.EventObject;

/**
 * Implementation of an event occurring in an environment.
 * 
 * @author Tarik Belabbas
 * 
 */
public abstract class EnvironmentEvent extends EventObject
{
	/**
	 * Version number associated to the serializable class.
	 */
	private static final long	serialVersionUID	= -131399380151659007L;

	/**
	 * Parameterized constructor with a source object.
	 * 
	 * @param _source the object on which the event initially occurred
	 */
	public EnvironmentEvent( Object _source )
	{
		super( _source );
	}

	/**
	 * Returns the source of the event, the environment.
	 * 
	 * @return the source of the event, the environment
	 */
	public Environment getEnvironment()
	{
		return ( Environment ) getSource();
	}
}
